<#assign resources="${rc.contextPath}/resources">
<#assign path="${rc.contextPath}">
<head>
<meta charset="UTF-8">
    <title>特价商品</title>
    <script >
		var path="${path}";
	</script>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href="${resources}/plugins/fontAwesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="${resources}/css/common.css" type="text/css">
 	<link rel="stylesheet" href="${resources}/css/discountList.css" type="text/css">
 	 <#include "setwxshare.ftl"/>
</head>
</head>


<body>

  <div id="container">
        <div class="title"><h3>超低折扣</h3></div>
        <div class="content">
            <div>
            <ul id="produceList">
                

            </ul>
                <div class="tip">向上滑动加载更多...</div>
            </div>
        </div>
    </div>
</div>
<script src="${resources}/plugins/jquery/2.2.2/jquery.min.js"></script>
<script src="${resources}/js/iscroll-probe.js"></script>
<script src="${resources}/js/common.js"></script>
</body>
<script >

	$(function(){
		discountShow(0);
	})
	
	function discountShow(maxid){
		
		 $.ajax({
        		type:"post",
        		async:true, 
	        	url:path+"/discountGoogs/merchantShow?maxId="+maxid,
        		success:function(resultjson){	
        			if('000' == resultjson.code){
        				var html = "";
        				for (var i = 0; i < resultjson.result.length; i++) {
        					 html+='<li value="'+resultjson.result[i].id+'"><a href="${path}/discountGoogs/info?merchantId='+resultjson.result[i].id+'"><img src="'+resultjson.result[i].picurl+'" alt=""><p>'+resultjson.result[i].name+'</p></a></li>';
        				}	
        				$("#produceList").append(html);
        				  myScroll.refresh();
             			 main.max = myScroll.maxScrollY;
        			}
        		}
        	})
	}
</script>
<script src="${resources}/js/discountList.js"></script>

 

 
